import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class Test13 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Flow(
        delegate: SimpleDelegate(),
        children: List.generate(10, (index) {
          return Container(
            height: 100,
            width: 100,
            color: Colors.primaries[index],
          );
        }),
      ),
    );
  }
}

class SimpleDelegate extends FlowDelegate {
  @override
  void paintChildren(FlowPaintingContext context) {
    for (int index = 0; index <= context.childCount; index++) {
      context.paintChild(index, transform: Matrix4.translationValues(0, index*30.0, 0));
    }
  }

  @override
  bool shouldRepaint(covariant FlowDelegate oldDelegate) {
    throw false;
  }
}
